package com.blt.govdata.controller;

import com.blt.govdata.controller.base.BaseController;
import com.blt.govdata.service.IProjectManagementService;
import com.google.common.collect.ImmutableMap;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.RestController;

import java.util.Map;

/**
 * Created with IntelliJ IDEA
 * Description:项目管理前端控制器
 * Author:GongJun
 * Date:2018/3/27
 * Time:17:59
 * blt Technologies Co., Ltd.
 */
@RestController
@RequestMapping("/projectManage")
public class ProjectManagementController extends BaseController {

    @Autowired
    IProjectManagementService service;

    /**
     * 项目展示
     */
    @RequestMapping(value = "/projectShow")
    public Map<String, Object> projectShow(@RequestParam Map<String, Object> params) {
        return ImmutableMap.of("status", "true", "data", this.service.projectShow(params));
    }

    /**
     * 项目基本情况
     */
    @RequestMapping(value = "/projectBasicInfo")
    public Map<String, Object> projectBasicInfo(@RequestParam Map<String, Object> params) {
        return ImmutableMap.of("status", "true", "data", this.service.projectBasicInfo(params));
    }

    /**
     * 土地编辑
     */
    @RequestMapping(value = "/landEdit")
    public Map<String, Object> landEdit(@RequestParam Map<String, Object> params) {
        return ImmutableMap.of("status", "true", "data", this.service.landEdit(params));
    }

    /**
     * 项目推进情况
     */
    @RequestMapping(value = "/projectPushCondition")
    public Map<String, Object> projectPushCondition(@RequestParam Map<String, Object> params) {
        return ImmutableMap.of("status", "true", "data", this.service.projectPushCondition(params));
    }

    /**
     * 项目年度计划
     */
    @RequestMapping(value = "/projectYearPlan")
    public Map<String, Object> projectYearPlan(@RequestParam Map<String, Object> params) {
        return ImmutableMap.of("status", "true", "data", this.service.projectYearPlan(params));
    }

    /**
     * 工作落实
     */
    @RequestMapping(value = "/workPracticable")
    public Map<String, Object> workPracticable(@RequestParam Map<String, Object> params) {
        return ImmutableMap.of("status", "true", "data", this.service.workPracticable(params));
    }

    /**
     * 任务管理
     */
    @RequestMapping(value = "/taskManagement")
    public Map<String, Object> taskManagement(@RequestParam Map<String, Object> params) {
        return ImmutableMap.of("status", "true", "data", this.service.taskManagement(params));
    }

    /**
     * 工作进展
     */
    @RequestMapping(value = "/workProgress")
    public Map<String, Object> workProgress(@RequestParam Map<String, Object> params) {
        return ImmutableMap.of("status", "true", "data", this.service.workProgress(params));
    }

    /**
     * 土地利用
     */
    @RequestMapping(value = "/landUsage")
    public Map<String, Object> landUsage(@RequestParam Map<String, Object> params) {
        return ImmutableMap.of("status", "true", "data", this.service.landUsage(params));
    }
}
